﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GetBestSeats
{
    class Seat
    {
        private int _row;
        private int _number;
        private bool _available;
        private double _price;

        public Seat(int row, int number, bool available, double price)
        {
            SetValues(row, number, available, price);
        }

        public Seat(int row, int number, bool available)
        {
            SetValues(row, number, available, 0.0);
        }

        public Seat(int row, int number)
        {
            SetValues(row, number, true, 0.0);
        }

        public Seat(int row)
        {
            SetValues(row, 0, true, 0.0);
        }

        public Seat()
        {
            SetValues(0, 0, true, 0.0);
        }

        private void SetValues(int row, int number, bool available, double price)
        {
            _row = row;
            _number = number;
            _available = available;
            _price = price;
        }

        public int Row
        {
            get { return _row; }
            set { _row = value; }
        }

        public int Number
        {
            get { return _number; }
            set { _number = value; }
        }

        public bool Available
        {
            get { return _available; }
            set { _available = value; }
        }

        public double Price
        {
            get { return _price; }
            set { _price = value; }
        }
    }
}
